﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using LitJson;

namespace CoolChat
{
    public partial class getIP : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NewMethod();
            
        }

        private void NewMethod()
        {
            string json = "{\"ipv4\":\"{0}\",\"ipv6\":\"{1}\"}";
            json = json.Replace("{0}", Request.UserHostAddress);
            json = json.Replace("{1}", Request.UserHostAddress);

            Response.Write(json);
        }
    }
}